unit Unit1;

interface

uses
  Winapi.Windows, Winapi.Messages, System.SysUtils, System.Variants, System.Classes, Vcl.Graphics,
  Vcl.Controls, Vcl.Forms, Vcl.Dialogs, Vcl.StdCtrls, Vcl.Buttons;

type
  TForm1 = class(TForm)
    edtbusca: TEdit;
    btnbusca: TSpeedButton;
    busca: TLabel;
    Button1: TButton;
    Edit1: TEdit;
    procedure btnbuscaClick(Sender: TObject);
    procedure edtbuscaChange(Sender: TObject);
    procedure Button1Click(Sender: TObject);
  private
    { Private declarations }
  public
    { Public declarations }
     varpesq : string;
     varpesqNota:string;
  end;

var
  Form1: TForm1;

implementation

{$R *.dfm}

uses UPesqWeb;

procedure TForm1.btnbuscaClick(Sender: TObject);
begin
 Formpesqweb := TFormpesqweb.Create(Application);
 Formpesqweb.combobox1.Text := 'http://www.google.com.br/search?hl=pt-BR&q='+varpesq+'&btnG=Pesquisa+Google&meta=';
 Formpesqweb.webbrowser1.Navigate(Formpesqweb.combobox1.Text);
 Formpesqweb.ShowModal
end;

procedure TForm1.Button1Click(Sender: TObject);
begin
 Formpesqweb := TFormpesqweb.Create(Application);
 Formpesqweb.combobox1.Text := 'https://www3.webiss.com.br/feiradesantanaba';
 Formpesqweb.webbrowser1.Navigate(Formpesqweb.combobox1.Text);
 Formpesqweb.ShowModal
end;

procedure TForm1.edtbuscaChange(Sender: TObject);
begin
varpesq := edtbusca.Text;
varpesqNota:= Edit1.Text;
end;

end.
